Q=input().split()
word=['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']
if len (Q)==3 and Q[i] in word:
    for i in range(3):
        ptint("right")
    else:
        for i in range(3):
            if a[i] not in word:
                print("wrong input")
for i in range(10):
                    if Q[0]==word[i]:
                        s=i*100
                    if Q[1]==word[i]:
                        s+=i*10
                    if Q[2]==word[i]:
                        s+=i*1
print(s)
       
            
       

